#include <iostream>
using std::cout;
using std::endl;

void test0(){
    int * p = (int*)malloc(sizeof(int));
    *p = 100;
    free(p);
    
    int * p1 = new int();//初始化为该类型的默认值
    cout << *p1 << endl;
    delete p1;
    p1 = nullptr;
    
    int * p2 = new int(400);
    cout << *p2 << endl;
    delete p2;
    p2 = nullptr;
}

int main(void){
    test0();
    return 0;
}

